package com.cz.video.website.domain.vo;

import com.cz.video.website.domain.WebsiteComment;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 评论Comment表
 * </p>
 *
 * @author LLF
 * @since 2023-11-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Schema(description="评论Comment表")
public class WebsiteCommentVo extends WebsiteComment implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "昵称")
    private String nickName;

    @JsonProperty("isLike")
    @Schema(description = "是否点赞")
    private Boolean like;

    @Schema(description = "回复数")
    private Integer replyNum;
}
